import com.kuang.demo2.UserService;
import com.kuang.demo2.UserServiceImpl;
import com.kuang.demo4.ProxyInvocationHandler;

public class test {
    public static void main(String[] args) {
        UserServiceImpl userService = new UserServiceImpl();
        ProxyInvocationHandler pih = new ProxyInvocationHandler();
        pih.setTarget(userService);
      UserService proxy = (UserService) pih.getProxy();
      proxy.delete();

    }
}
